<template>
  <div class="comment">
    <div class="header">
      <van-nav-bar left-arrow @click-left="onClickLeft" size="18px">
        <template #right>
          <van-icon name="close" size="18px" />
        </template>
      </van-nav-bar>
    </div>
    <ul class="title">
      <li class="comment-title-text">
        <p>简介</p>
        <span></span>
      </li>
      <li class="comment-title-text active">
        <p>影评</p>
        <span></span>
      </li>
      <li class="comment-title-text">
        <p>讨论</p>
        <span></span>
      </li>
      <li class="comment-title-text">
        <p>更多</p>
        <span></span>
      </li>
    </ul>
    <div class="comment-label-box">
      <div class="comment-label-title">
        <p class="label-title-text">观众热评</p>
        <van-button
          color="linear-gradient(150deg,rgba(242,91,134,1)0%,rgba(241,172,94,1) 1%)00;"
          round
          size="mini"
        >写影评</van-button>
      </div>
      <div class="comment-label-content">
        <van-tag round size="large" color="#33363D" class="tabel-only">全部</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">最新</van-tag>
        <van-tag size="large" color="#33363D" class="tabel-only">陪伴是最长情的告白</van-tag>
        <van-tag size="large" color="#33363D" class="tabel-only">爱狗人士必看</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">好评</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">差评</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">点映</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">购票</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">影评达人</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">同城</van-tag>
        <van-tag round size="large" color="#33363D" class="tabel-only">更多</van-tag>
      </div>
      <div class="comment-label-foot">
        <van-icon name="arrow-down" color="#ffffff" size="20" />
      </div>
    </div>
    <ul class="comment-content-box">
      <li class="comment-content-list">
        <div class="content-header">
          <div class="content-herder-photo">
            <img src="@/assets/images/movie/girlone.png" alt />
          </div>
          <div class="content-herder-name">
            <p>yujia2754</p>
            <van-rate v-model="value" size="15" />
          </div>
          <div class="content-herder-icon">
            <van-icon name="ellipsis" color="#ffffff" size="20" />
          </div>
        </div>
        <div class="content-content">
          <p>
            2002年,15岁的石原里美参加了HORIPRO公司第27回艺人新人选拔,获得最佳新人“完美少女”奖。
            2003年2月15日,参演的爱情电影《小岛之恋》上映…
          </p>
        </div>
        <div class="content-foot">
          <div class="content-foot-time">05-17 09:34</div>
          <div class="content-foot-icon">
            <van-icon name="thumb-circle-o" color="#ffffff" size="20" />
            <van-icon name="chat-o" color="#ffffff" size="20" />
          </div>
        </div>
      </li>
      <li class="comment-content-list">
        <div class="content-header">
          <div class="content-herder-photo">
            <img src="@/assets/images/movie/girlthree.png" alt />
          </div>
          <div class="content-herder-name">
            <p>yujia2754</p>
            <van-rate v-model="value" size="15" />
          </div>
          <div class="content-herder-icon">
            <van-icon name="ellipsis" color="#ffffff" size="20" />
          </div>
        </div>
        <div class="content-content">
          <p>
            2002年,15岁的石原里美参加了HORIPRO公司第27回艺人新人选拔,获得最佳新人“完美少女”奖。
            2003年2月15日,参演的爱情电影《小岛之恋》上映…
          </p>
        </div>
        <div class="content-foot">
          <div class="content-foot-time">05-17 09:34</div>
          <div class="content-foot-icon">
            <van-icon name="thumb-circle-o" color="#ffffff" size="20" />
            <van-icon name="chat-o" color="#ffffff" size="20" />
          </div>
        </div>
      </li>
      <li class="comment-content-list">
        <div class="content-header">
          <div class="content-herder-photo">
            <img src="@/assets/images/movie/girlthree.png" alt />
          </div>
          <div class="content-herder-name">
            <p>yujia2754</p>
            <van-rate v-model="value" size="15" />
          </div>
          <div class="content-herder-icon">
            <van-icon name="ellipsis" color="#ffffff" size="20" />
          </div>
        </div>
      </li>
    </ul>
    <div class="comment-bottom">特惠选座</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: 4.5
    };
  },
  computed: {},
  created() {},
  mounted() {},
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    }
  }
};
</script>
<style lang="scss">
[class*="van-hairline"]::after {
  position: static;
}

.van-nav-bar {
  background-color: rgba(0, 0, 0, 0.2) !important;
  .van-nav-bar__title {
    color: #ffffff !important;
  }
}
.van-nav-bar__text {
  color: #ffffff !important;
}
.van-nav-bar .van-icon {
  color: #ffffff !important;
}
.van-button--default {
  background: linear-gradient(
    150deg,
    rgba(242, 91, 134, 1) 0%,
    rgba(241, 172, 94, 1) 100%
  );
}
</style>
<style scoped lang="scss" scoped>
.comment {
  background-color: #22262d;
  overflow: hidden;
  height: 100vh;
}
.title {
  width: 90%;
  height: 30px;
  font-size: 14px;
  margin: 0 auto;
  margin-top: 10px;

  .comment-title-text {
    line-height: 20px;
    float: left;
    margin-right: 30px;
    color: #666666;
  }
  .active.comment-title-text {
    color: rgba(255, 255, 255, 1);
    span {
      display: block;
      height: 2px;
      width: 100%;
      background: linear-gradient(
        135deg,
        rgba(241, 100, 129, 1) 0%,
        rgba(241, 144, 108, 1) 100%
      );
    }
  }
}
.comment-label-title {
  width: 90%;
  margin: 0 auto;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .label-title-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 1);
    line-height: 18px;
  }
}
.comment-label-content {
  width: 70%;
  margin-left: 15px;
  display: flex;
  flex-flow: wrap row;
  justify-content: space-evenly;
  align-content: space-around;

  .tabel-only {
    margin: 10px 5px;
  }
  .tabel-only:nth-child(1) {
    margin: 10px 0;
  }
  .tabel-only:nth-child(2) {
    margin: 10px 0;
  }
  .tabel-only:nth-child(3) {
    margin: 10px;
  }
  .tabel-only:nth-child(4) {
    margin: 10px 0px;
  }
  .tabel-only:nth-child(8) {
    margin: 10px -5px;
  }
}
.comment-label-foot {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.comment-content-box {
  margin: 20px auto;
  width: 90%;
  .comment-content-list {
    width: 100%;
    margin: 30px auto;
    .content-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .content-herder-photo {
        width: 50px;
        height: 50px;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .content-herder-name {
        width: 70%;
        text-align: left;
        font-size: 14px;
        color: rgba(255, 255, 255, 1);
        line-height: 20px;
      }
    }
    .content-content {
      text-align: left;
      margin: 10px 0;
      font-size: 12px;
      color: rgba(255, 255, 255, 1);
      line-height: 18px;
    }
    .content-foot {
      width: 100%;
      display: flex;
      justify-content: space-between;
      .content-foot-time {
        font-size: 12px;
        color: rgba(255, 255, 255, 1);
        line-height: 17px;
      }
      .content-foot-icon {
        width: 15%;
        display: flex;
        justify-content: space-between;
      }
    }
  }
}
.comment-bottom {
  background: linear-gradient(
    150deg,
    rgba(242, 91, 134, 1) 0%,
    rgba(241, 172, 94, 1) 100%
  );
  box-shadow: 0px 0px 4px 1px rgba(242, 109, 125, 0.18);
  height: 48px;
  width: 100%;
  position: fixed;
  bottom: -1px;
  left: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 1);
  line-height: 40px;
}
</style>
